package com.charon.auth.common.implement;

import com.charon.auth.common.abstraction.AbstractImageCodeProperties;
import javax.validation.constraints.DecimalMax;

/**
  *@ClassName: ImageCodeProperties
  *@Description: 图形验证码基本参数默认配置，覆盖级别：请求级（某个请求链接）配置>应用级配置>默认配置
  *@Author: Charon [248135724@qq.com]
  *@Date: 2019/1/31 0031 13:41
  *@Version: 1.0
  */
public class DefaultImageCodeProperties extends AbstractImageCodeProperties {

    /**
     * 默认图形验证码宽度70
     */
    protected int width=70;

    /**
     * 默认图形验证码高度23
     */
    protected int height=23;

    /**
     * 默认图形验证码长度4
     */
    @DecimalMax("16")
    protected int length=4;

    /**
     * 默认，需要进行验证码验证的url
     */
    private String[] urls={"/user/form","/user/test"};

    /**
     * 默认过期时间
     */
    private int expire=120;

    @Override
    public String[] getUrls() {
        return urls;
    }

    @Override
    public void setUrls(String... urls) {
        this.urls=urls;
    }

    @Override
    public int getLength() {
        return this.length;
    }

    @Override
    public void setLength(int length) {
        this.length=length;
    }

    @Override
    public int getExpire() {
        return expire;
    }

    @Override
    public void setExpire(int expire) {
        this.expire = expire;
    }

    @Override
    public int getWidth() {
        return this.width;
    }

    @Override
    public void setWidth(int width) {
        this.width=width;
    }

    @Override
    public int getHeight() {
        return this.height;
    }

    @Override
    public void setHeight(int height) {
        this.height=height;
    }


}
